<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id
 * @property int $uid
 * @property int $reply_count
 * @property int $zan_count
 * @property string $tags
 * @property string $location
 * @property string $title
 * @property string $content
 * @property string $photo
 * @property int $status
 * @property int $time
 * @property int $is_show
 * @property int $show_type
 * @property int $publish_time
 * @property int $audit_uid
 * @property int $audit_time
 * @property string $audit_content
 */
class Moment extends Model
{
    public bool $timestamps = false;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'moment';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['title', 'content', 'photo'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'reply_count' => 'integer', 'zan_count' => 'integer', 'status' => 'integer', 'time' => 'integer', 'is_show' => 'integer', 'show_type' => 'integer', 'publish_time' => 'integer', 'audit_uid' => 'integer', 'audit_time' => 'integer'];
}
